import {
	callFunc
} from "../../request.js"

export function getServiceList({
	keyword,
	city = '4201',
	categoryId,
	action = 'all',
	userLocation,
	showLoading = true
}) {
	return callFunc({
		showLoading,
		funcName: "uni-admin",
		data: {
			action: "store/getServiceList",
			data: {
				keyword,
				categoryId,
				city,
				action,
				userLocation,
				token: uni.getStorageSync('uni_id_token')
			}
		}
	});
}

export function getStoreDetail({
	showLoading = false,
	userLocation,
	storeId
}) {
	return callFunc({
		showLoading,
		funcName: "uni-admin",
		data: {
			action: "store/getStoreDetail",
			data: {
				userLocation,
				storeId,
				token: uni.getStorageSync('uni_id_token')
			}
		}
	})
}
